<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="/WEB-INF/tld/pageable.tld" prefix="pageable"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
<script>
$(function(){
	$('#submit').click(function(){
		document.templateForm.submit();
	});
	$('#reset').click(function(){
		document.templateForm.reset();
	});
	$('#templateList').click(function(){
		location.href='/ecadmin/memberMsg/templateList.do';
	});
});
</script>
<c-rt:if test="${param.tempId!=null}">
${pu:reqSet('template', pu:get('com.yaodian100.ec.membermsg.entity.MemberMsgTemplate', pu:toLong(param.tempId))) }
</c-rt:if>
<br />
<h1>发送会员讯息

</h1>
<table width="100%">
<tr>
<td><div class="f-link"><a href="javascript:;" id="templateList">范本列表</a></div></td>
</tr>
</table>
<form name="templateForm" method="post" action="/ecadmin/memberMsg/updateTemplate.do">
<input type="hidden" name="template.id" value="${template.id }"/>
<table>
<tr>
<td>title</td><td><input type="text" name="template.title" value="${template.title }"/></td>
</tr>
<tr>
<td>subject</td><td><input type="text" name="template.subject" value="${template.subject }"/></td>
</tr>
<tr>
<td>补偿礼券</td><td><input type="radio" name="template.isCoupon" value="1" <c-rt:if test="${template.isCoupon=='1' }">checked="checked"</c-rt:if>/>是<input type="radio" name="template.isCoupon" value="0" <c-rt:if test="${template.isCoupon=='0' }">checked="checked"</c-rt:if>/>否</td>
</tr>
<tr>
<td>补偿积分</td><td><input type="radio" name="template.isBonus" value="1" <c-rt:if test="${template.isBonus=='1' }">checked="checked"</c-rt:if>/>是<input type="radio" name="template.isBonus" value="0" <c-rt:if test="${template.isBonus=='0' }">checked="checked"</c-rt:if>/>否</td>
</tr>
<tr>
<td>系统信</td><td><textarea name="template.mailContent" rows="5" cols="100">${template.mailContent }</textarea></td>
</tr>
<tr>
<td>短信</td><td><textarea name="template.smsContent" rows="3" cols="100">${template.smsContent }</textarea></td>
</tr>

</table>
</form>
<table>
<tr>
<td>
<div class="f-link"><a href="javascript:;" id="reset">重设</a></div><div class="f-link"><a href="javascript:;" id="submit">确认送出</a></div>
</td>
</tr>
</table>
